package com.zhoutian.service;

import com.github.pagehelper.Page;
import com.zhoutian.entity.PageResult;
import com.zhoutian.entity.QueryPageBean;
import com.zhoutian.entity.Result;
import com.zhoutian.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    public User findByUsername(String username);
    public Result add(User user, Integer rId);
    public PageResult pageQuery(QueryPageBean queryPageBean);
    public Result edit(User user, Integer rId);
    public User findById(Integer id);
    public void deleteById(Integer id);
    public List<Integer> findRoleIdByUserId(Integer id);
    public Result findUserName(String username);

}
